package dao

type User struct {
	ID       int    `json:"id"`
	Mobile   string `gorm:"type:char(11);not null;comment:手机号;unique"`
	Password string `gorm:"type:varchar(50);not null;comment:密码"`
}

func (u *User) TableName() string {
	return "user"
}

type Order struct {
}

func (u *Order) TableName() string {
	return "order"
}

type Dish struct {
}

func (u *Dish) TableName() string {
	return "dish"
}

type Merchant struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
	Score   int    `json:"score"`
}

func (u *Merchant) TableName() string {
	return "merchant"
}
